package GearCommands;

import Connections.Peer;
import Gear.Gear;

/**
 * Implementation of the user command exit.
 * Close safely the gear program.
 *
 * @author Davi Mendes
 */
public class GearCommandExit implements GearCommand {

    @Override
    public void execute(String[] args, Gear gear) {

        Peer.getInstance().iAmNotAlive().send();
        gear.exit();

    }

}
